package com.yuqian;

import com.yuqian.talkservers.TCPServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.data.web.config.EnableSpringDataWebSupport;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;



@RestController
@Configuration
@EnableWebMvc
@EnableSpringDataWebSupport
@EntityScan("com.yuqian.bean")
@EnableJpaRepositories(basePackages = "com.yuqian.Resposoyory")
@SpringBootApplication
public class HelperApplication {

	public static void main(String[] args) {
		SpringApplication.run(HelperApplication.class, args);

		Thread talk=new Thread(new Runnable() {
			@Override
			public void run() {
				TCPServer server = new TCPServer();
				server.start();
			}
		});
		talk.start();



	}
}
